﻿using CKS2320.Common.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CKS2320.Service.Interface
{
    public interface IEquipmentfailureService
    {
        /// <summary>
        /// 获取故障码表
        /// </summary>
        /// <param name="ip"></param>
        /// <returns></returns>
        List<EquipmentfailureModel> GetEquipmentfailures(string ip, string Language = "CN");
        /// <summary>
        /// 更新一条故障记录
        /// </summary>
        /// <param name="ip"></param>
        /// <returns></returns>
        ResultReturn EditHistory(string id);
        /// <summary>
        /// 插入一条故障记录
        /// </summary>
        /// <param name="ip"></param>
        /// <returns></returns>
        ResultReturn InsertHistory(EquipmentfailurehistoryModel req);
        /// <summary>
        /// 获取历史故障记录
        /// </summary>
        /// <param name="ip"></param>
        /// <returns></returns>
        ResultReturn GetEquipmentfailureHistory(string Language = "CN");
        /// <summary>
        /// 获取正在故障阶段的记录
        /// </summary>
        /// <param name="Language"></param>
        /// <returns></returns>
        IEnumerable<EquipmentfailurehistoryModel>? GetFailureHistory(string ip, string Language = "CN");
    }
}
